package com.example.mybatisplus.mapper;

import com.example.mybatisplus.model.domain.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lxp
 * @since 2022-05-31
 */
@Repository
public interface UserMapper extends BaseMapper<User> {
    User getUserbyName (String name);

    User getConsultantById(Long id);

    List<User> getConsultants();

    void updatestatusbystuId(Long id, Integer integer);

    Long getTeacherIdByName(String name);

    Long getIdByName(String name);

    List<Long> getteaIdsbyType();

    List<Long> gettimeIds();

    List<User> getRole(int role);

    User getByIdAndType(Long id, int role);

    Long getByNameAndType(String name, int role);
}
